<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>发送jsonp方法</title>
</head>

<body>
    <button id="btn">点击发送请求</button>
    <script src="/js/jquery.min.js"></script>
    <script>
        $('#btn').on('click', function() {
            // 参数可以是{name: 'zs'},可以是'name: "zs"&..',可以省略
            $.get('/base', function(response) {
                console.log(response);
            });
            $.post('/base', function(response) {
                console.log(response);
            });
        });
    </script>
</body>

</html>